import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/view/home/index.vue'
import Login from '@/view/login/index.vue'
import NotFound from '@/view/404/notFound.vue'

const routes = [
    {
        path:'/login',
        component:Login
    },
    {
        path:'/',
        redirect:'/login'
    },
    {
        path:'/:pathMatch(.*)*',
        component:NotFound
    },
    {
        path: '/home',
        component: Home
    }

]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router